package com.barneyx.mshinfoplatform.entity.info;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.barneyx.mshinfoplatform.entity.AreaCommonEntity;
import com.gitee.sunchenbin.mybatis.actable.annotation.Column;
import com.gitee.sunchenbin.mybatis.actable.annotation.TableCharset;
import com.gitee.sunchenbin.mybatis.actable.annotation.TableComment;
import com.gitee.sunchenbin.mybatis.actable.annotation.TableEngine;
import com.gitee.sunchenbin.mybatis.actable.constants.MySqlCharsetConstant;
import com.gitee.sunchenbin.mybatis.actable.constants.MySqlEngineConstant;
import com.gitee.sunchenbin.mybatis.actable.constants.MySqlTypeConstant;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.extern.slf4j.Slf4j;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "msh_info_fee_setting", autoResultMap = true)
@TableCharset(MySqlCharsetConstant.UTF8)
@TableEngine(value = MySqlEngineConstant.MyISAM)
@TableComment("信息分类收费配制表")
@Slf4j
public class InfoFeeSettingEntity extends AreaCommonEntity {
    @TableId(value = "fee_id", type = IdType.ASSIGN_ID)
    @Column(type = MySqlTypeConstant.BIGINT)
    private String FeeId;

    @TableField(value = "cate_id")
    @Column(type = MySqlTypeConstant.BIGINT)
    private String CateId;

    @TableField("cate_name")
    private String CateName;

    @TableField(exist = false)
    private InfoCateEntity Cate;

    @TableField("fee_enable")
    @Column(type = MySqlTypeConstant.TINYINT)
    private Boolean FeeEnable;

    @TableField("fee_money")
    @Column(type = MySqlTypeConstant.DECIMAL)
    private String FeeMoney;
}
